.class public Lcom/kuguo/ad/BoutiqueActivity;
.super Landroid/app/Activity;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;
.implements Lcom/kuguo/ad/z;


# static fields
.field private static g:Landroid/app/Activity;


# instance fields
.field private a:Landroid/widget/LinearLayout;

.field private b:Landroid/widget/FrameLayout;

.field private c:Landroid/widget/FrameLayout;

.field private d:Lcom/kuguo/ui/Workspace;

.field private e:Ljava/util/List;

.field private f:Landroid/os/Handler;

.field private h:I

.field private i:I


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->f:Landroid/os/Handler;

    const/16 v0, 0x163

    iput v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->h:I

    return-void
.end method

.method public static a()Landroid/app/Activity;
    .locals 1

    sget-object v0, Lcom/kuguo/ad/BoutiqueActivity;->g:Landroid/app/Activity;

    if-eqz v0, :cond_0

    sget-object v0, Lcom/kuguo/ad/BoutiqueActivity;->g:Landroid/app/Activity;

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic a(Lcom/kuguo/ad/BoutiqueActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->e:Ljava/util/List;

    return-object v0
.end method

.method static synthetic a(Lcom/kuguo/ad/BoutiqueActivity;Ljava/util/List;)Ljava/util/List;
    .locals 0

    iput-object p1, p0, Lcom/kuguo/ad/BoutiqueActivity;->e:Ljava/util/List;

    return-object p1
.end method

.method static synthetic a(Lcom/kuguo/ad/BoutiqueActivity;[Lcom/kuguo/ad/o;)Ljava/util/List;
    .locals 1

    invoke-direct {p0, p1}, Lcom/kuguo/ad/BoutiqueActivity;->b([Lcom/kuguo/ad/o;)Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method private a(Ljava/util/List;)V
    .locals 12

    const/16 v11, 0xa

    const/4 v10, 0x1

    const/4 v9, -0x2

    const/4 v8, 0x7

    const/4 v7, 0x0

    invoke-static {}, Lcom/kuguo/ad/KuguoAdsManager;->resetOnAppInstallListener()V

    new-instance v0, Lcom/kuguo/ui/Workspace;

    invoke-direct {v0, p0}, Lcom/kuguo/ui/Workspace;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->d:Lcom/kuguo/ui/Workspace;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    int-to-double v1, v0

    const-wide/high16 v3, 0x3ff0

    mul-double/2addr v1, v3

    const-wide/high16 v3, 0x4030

    div-double/2addr v1, v3

    invoke-static {v1, v2}, Ljava/lang/Math;->ceil(D)D

    move-result-wide v1

    double-to-int v1, v1

    move v2, v7

    :goto_0
    if-ge v2, v1, :cond_2

    new-instance v3, Landroid/widget/GridView;

    invoke-direct {v3, p0}, Landroid/widget/GridView;-><init>(Landroid/content/Context;)V

    const/4 v4, 0x4

    invoke-virtual {v3, v4}, Landroid/widget/GridView;->setNumColumns(I)V

    invoke-virtual {v3, v11}, Landroid/widget/GridView;->setVerticalSpacing(I)V

    invoke-static {p0}, Lcom/kuguo/ad/a;->n(Landroid/content/Context;)I

    move-result v4

    const/16 v5, 0x78

    if-ne v4, v5, :cond_0

    invoke-static {p0, v8}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v4

    invoke-static {p0, v8}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v5

    invoke-virtual {v3, v4, v7, v5, v7}, Landroid/widget/GridView;->setPadding(IIII)V

    :goto_1
    invoke-virtual {v3, p0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    mul-int/lit8 v4, v2, 0x10

    sub-int v5, v1, v10

    if-ge v2, v5, :cond_1

    add-int/lit8 v5, v4, 0x10

    :goto_2
    new-instance v6, Lcom/kuguo/ad/n;

    invoke-interface {p1, v4, v5}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v4

    invoke-direct {v6, p0, v4, v10}, Lcom/kuguo/ad/n;-><init>(Landroid/content/Context;Ljava/util/List;I)V

    invoke-virtual {v3, v6}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v4, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v4, v9, v9}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    iget-object v5, p0, Lcom/kuguo/ad/BoutiqueActivity;->d:Lcom/kuguo/ui/Workspace;

    invoke-virtual {v5, v3, v4}, Lcom/kuguo/ui/Workspace;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_0
    invoke-static {p0, v8}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v4

    invoke-static {p0, v11}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v5

    invoke-static {p0, v8}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v6

    invoke-virtual {v3, v4, v5, v6, v7}, Landroid/widget/GridView;->setPadding(IIII)V

    goto :goto_1

    :cond_1
    sub-int v5, v1, v10

    mul-int/lit8 v5, v5, 0x10

    sub-int v5, v0, v5

    add-int/2addr v5, v4

    goto :goto_2

    :cond_2
    invoke-virtual {p0}, Lcom/kuguo/ad/BoutiqueActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/Display;->getWidth()I

    move-result v2

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Display;->getHeight()I

    move-result v1

    invoke-static {p0}, Lcom/kuguo/ad/a;->n(Landroid/content/Context;)I

    move-result v3

    const/16 v4, 0x78

    if-le v3, v4, :cond_5

    if-ge v2, v1, :cond_5

    const/16 v1, 0x10

    if-lt v0, v1, :cond_3

    iget v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->h:I

    invoke-static {p0, v0}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v0

    :goto_3
    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v2, 0x127

    invoke-static {p0, v2}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v2

    invoke-direct {v1, v2, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0x11

    iput v0, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/kuguo/ad/BoutiqueActivity;->d:Lcom/kuguo/ui/Workspace;

    invoke-virtual {v0, v2, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    return-void

    :cond_3
    div-int/lit8 v1, v0, 0x4

    rem-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_4

    add-int/lit8 v0, v1, 0x1

    :goto_4
    iget v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->h:I

    div-int/lit8 v1, v1, 0x4

    mul-int/2addr v0, v1

    invoke-static {p0, v0}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v0

    goto :goto_3

    :cond_4
    move v0, v1

    goto :goto_4

    :cond_5
    move v0, v9

    goto :goto_3
.end method

.method static synthetic b(Lcom/kuguo/ad/BoutiqueActivity;)I
    .locals 1

    iget v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->i:I

    return v0
.end method

.method private b([Lcom/kuguo/ad/o;)Ljava/util/List;
    .locals 4

    if-nez p1, :cond_1

    const/4 v0, 0x0

    :cond_0
    return-object v0

    :cond_1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    aget-object v3, p1, v2

    if-eqz v3, :cond_2

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0
.end method

.method private b()V
    .locals 2

    invoke-static {p0}, Lcom/kuguo/ad/a;->o(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/kuguo/ad/aj;

    invoke-direct {v0, p0}, Lcom/kuguo/ad/aj;-><init>(Lcom/kuguo/ad/BoutiqueActivity;)V

    invoke-virtual {v0}, Lcom/kuguo/ad/aj;->start()V

    :goto_0
    return-void

    :cond_0
    const-string v0, "android__log"

    const-string v1, "has not got app list msgs, request now !!! "

    invoke-static {v0, v1}, Lcom/kuguo/c/a;->a(Ljava/lang/String;Ljava/lang/Object;)V

    new-instance v0, Lcom/kuguo/ad/g;

    invoke-direct {v0, p0}, Lcom/kuguo/ad/g;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, p0}, Lcom/kuguo/ad/g;->a(Lcom/kuguo/ad/z;)V

    new-instance v1, Lcom/kuguo/ad/ak;

    invoke-direct {v1, p0}, Lcom/kuguo/ad/ak;-><init>(Lcom/kuguo/ad/BoutiqueActivity;)V

    invoke-virtual {v0, v1}, Lcom/kuguo/ad/g;->a(Lcom/kuguo/ui/c;)V

    invoke-virtual {v0}, Lcom/kuguo/ad/g;->a()V

    goto :goto_0
.end method

.method static synthetic b(Lcom/kuguo/ad/BoutiqueActivity;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/kuguo/ad/BoutiqueActivity;->a(Ljava/util/List;)V

    return-void
.end method

.method private b(Ljava/util/List;)V
    .locals 4

    new-instance v0, Landroid/widget/ListView;

    invoke-direct {v0, p0}, Landroid/widget/ListView;-><init>(Landroid/content/Context;)V

    new-instance v1, Lcom/kuguo/ad/n;

    const/4 v2, 0x2

    invoke-direct {v1, p0, p1, v2}, Lcom/kuguo/ad/n;-><init>(Landroid/content/Context;Ljava/util/List;I)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v2, 0x127

    invoke-static {p0, v2}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v2

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0x11

    iput v2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v2, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v2, v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic c(Lcom/kuguo/ad/BoutiqueActivity;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->f:Landroid/os/Handler;

    return-object v0
.end method

.method private c()V
    .locals 8

    const/16 v7, 0x11

    const/4 v6, 0x0

    const/4 v5, -0x1

    const/4 v4, -0x2

    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    new-instance v1, Landroid/graphics/drawable/GradientDrawable;

    sget-object v2, Landroid/graphics/drawable/GradientDrawable$Orientation;->TOP_BOTTOM:Landroid/graphics/drawable/GradientDrawable$Orientation;

    const/4 v3, 0x3

    new-array v3, v3, [I

    fill-array-data v3, :array_0

    invoke-direct {v1, v2, v3}, Landroid/graphics/drawable/GradientDrawable;-><init>(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    new-instance v1, Landroid/widget/TextView;

    invoke-direct {v1, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v4, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    iput v7, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    const/16 v3, 0xa

    invoke-static {p0, v3}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v3

    invoke-virtual {v1, v6, v3, v6, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    const-string v3, "APP\u7cbe\u54c1\u63a8\u8350"

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setTextColor(I)V

    const/high16 v3, 0x41b0

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setTextSize(F)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v1, v5, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    iput v7, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v2, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void

    :array_0
    .array-data 0x4
        0xbet 0x97t 0x52t 0xfft
        0xbet 0x97t 0x52t 0xfft
        0xbet 0x97t 0x52t 0xfft
    .end array-data
.end method

.method static synthetic c(Lcom/kuguo/ad/BoutiqueActivity;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/kuguo/ad/BoutiqueActivity;->b(Ljava/util/List;)V

    return-void
.end method

.method private c(Ljava/util/List;)V
    .locals 4

    const/4 v1, 0x2

    new-instance v0, Landroid/widget/GridView;

    invoke-direct {v0, p0}, Landroid/widget/GridView;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setNumColumns(I)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setVerticalSpacing(I)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setHorizontalSpacing(I)V

    invoke-virtual {v0, v1, v1, v1, v1}, Landroid/widget/GridView;->setPadding(IIII)V

    const v1, -0x2c221e

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setBackgroundColor(I)V

    invoke-virtual {v0, p0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v1, Lcom/kuguo/ad/n;

    const/4 v2, 0x3

    invoke-direct {v1, p0, p1, v2}, Lcom/kuguo/ad/n;-><init>(Landroid/content/Context;Ljava/util/List;I)V

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v2, 0x127

    invoke-static {p0, v2}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v2

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0x11

    iput v2, v1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v2, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v2, v0, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic d(Lcom/kuguo/ad/BoutiqueActivity;)Lcom/kuguo/ui/Workspace;
    .locals 1

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->d:Lcom/kuguo/ui/Workspace;

    return-object v0
.end method

.method private d()V
    .locals 4

    const/4 v3, -0x2

    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setBackgroundColor(I)V

    invoke-virtual {p0}, Lcom/kuguo/ad/BoutiqueActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/Display;->getWidth()I

    move-result v1

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->h:I

    invoke-static {p0, v0}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v0

    :goto_0
    new-instance v1, Landroid/widget/FrameLayout;

    invoke-direct {v1, p0}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    new-instance v1, Landroid/widget/ProgressBar;

    invoke-direct {v1, p0}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;)V

    new-instance v2, Landroid/widget/FrameLayout$LayoutParams;

    invoke-direct {v2, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0x11

    iput v3, v2, Landroid/widget/FrameLayout$LayoutParams;->gravity:I

    iget-object v3, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    invoke-virtual {v3, v1, v2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v1, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v2, 0x127

    invoke-static {p0, v2}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v2

    invoke-direct {v1, v2, v0}, Landroid/widget/FrameLayout$LayoutParams;-><init>(II)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    iget-object v2, p0, Lcom/kuguo/ad/BoutiqueActivity;->c:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v2, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->b:Landroid/widget/FrameLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    return-void

    :cond_0
    const/16 v0, 0x12c

    invoke-static {p0, v0}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v0

    goto :goto_0
.end method

.method static synthetic d(Lcom/kuguo/ad/BoutiqueActivity;Ljava/util/List;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/kuguo/ad/BoutiqueActivity;->c(Ljava/util/List;)V

    return-void
.end method

.method private e()V
    .locals 2

    const/4 v1, 0x1

    invoke-static {p0}, Lcom/kuguo/ad/a;->s(Landroid/content/Context;)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    iput v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->i:I

    :goto_0
    return-void

    :pswitch_0
    iput v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->i:I

    goto :goto_0

    :pswitch_1
    const/4 v0, 0x2

    iput v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->i:I

    goto :goto_0

    :pswitch_2
    const/4 v0, 0x3

    iput v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->i:I

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method


# virtual methods
.method public a([Lcom/kuguo/ad/o;)V
    .locals 2

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->f:Landroid/os/Handler;

    new-instance v1, Lcom/kuguo/ad/ao;

    invoke-direct {v1, p0, p1}, Lcom/kuguo/ad/ao;-><init>(Lcom/kuguo/ad/BoutiqueActivity;[Lcom/kuguo/ad/o;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public finish()V
    .locals 1

    invoke-super {p0}, Landroid/app/Activity;->finish()V

    const/4 v0, 0x0

    sput-object v0, Lcom/kuguo/ad/BoutiqueActivity;->g:Landroid/app/Activity;

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v3, 0x2

    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    sput-object p0, Lcom/kuguo/ad/BoutiqueActivity;->g:Landroid/app/Activity;

    invoke-direct {p0}, Lcom/kuguo/ad/BoutiqueActivity;->e()V

    invoke-virtual {p0, v5}, Lcom/kuguo/ad/BoutiqueActivity;->requestWindowFeature(I)Z

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    invoke-static {p0, v3}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v1

    invoke-static {p0, v3}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v2

    invoke-static {p0, v3}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v3

    const/4 v4, 0x4

    invoke-static {p0, v4}, Lcom/kuguo/ad/a;->a(Landroid/content/Context;I)I

    move-result v4

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    const v1, -0x6d39c6

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setOrientation(I)V

    invoke-direct {p0}, Lcom/kuguo/ad/BoutiqueActivity;->c()V

    invoke-direct {p0}, Lcom/kuguo/ad/BoutiqueActivity;->d()V

    invoke-direct {p0}, Lcom/kuguo/ad/BoutiqueActivity;->b()V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v1, p0, Lcom/kuguo/ad/BoutiqueActivity;->a:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v1, v0}, Lcom/kuguo/ad/BoutiqueActivity;->setContentView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    const/4 v5, 0x2

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    invoke-interface {v0, p3}, Landroid/widget/Adapter;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/kuguo/ad/o;

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    iget-boolean v2, v0, Lcom/kuguo/ad/o;->j:Z

    if-eqz v2, :cond_1

    iget-object v2, v0, Lcom/kuguo/ad/o;->k:Ljava/lang/String;

    const-string v3, ""

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\u6b63\u5728\u6253\u5f00"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, v0, Lcom/kuguo/ad/o;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "..."

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/16 v3, 0x5dc

    invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    new-instance v2, Landroid/content/ComponentName;

    iget-object v3, v0, Lcom/kuguo/ad/o;->i:Ljava/lang/String;

    iget-object v4, v0, Lcom/kuguo/ad/o;->k:Ljava/lang/String;

    invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/kuguo/ad/BoutiqueActivity;->startActivity(Landroid/content/Intent;)V

    :goto_0
    const-string v1, "android__log"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "update ad status "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, v0, Lcom/kuguo/ad/o;->g:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " id : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget v3, v0, Lcom/kuguo/ad/o;->h:I

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " status : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/kuguo/c/a;->a(Ljava/lang/String;Ljava/lang/Object;)V

    invoke-static {p0}, Lcom/kuguo/ad/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-static {p0}, Lcom/kuguo/ad/a;->k(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    iget v0, v0, Lcom/kuguo/ad/o;->h:I

    invoke-static {v1, v0, v5}, Lcom/kuguo/ad/a;->a(Ljava/lang/String;II)Z

    :cond_0
    return-void

    :cond_1
    const-string v2, "message"

    invoke-virtual {v0}, Lcom/kuguo/ad/o;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "sharedid"

    iget v3, v0, Lcom/kuguo/ad/o;->f:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string v2, "shortcut"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string v2, "applist"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-class v2, Lcom/kuguo/ad/MainActivity;

    invoke-virtual {v1, p0, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/kuguo/ad/BoutiqueActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
